package com.lq.ecoldchain.ui.moneypocket

import android.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.databinding.AccountDetailItemBinding
import com.lq.ecoldchain.entity.AccountDetailBean

/*
*2019/1/18 0018  21:06
*function by lq
*/
class AccountAdapter(list:List<AccountDetailBean>):BaseQuickAdapter<AccountDetailBean,BaseViewHolder>(R.layout.account_detail_item,list){
    override fun convert(helper: BaseViewHolder, item: AccountDetailBean) {
        val binding = DataBindingUtil.bind<AccountDetailItemBinding>(helper.itemView)!!
        binding.bean = item
        binding.executePendingBindings()
    }

}